package icu.lookyousmileface.apo1;

import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 * @author starrysky
 * @title: Log
 * @projectName spring5
 * @description: TODO
 * @date 2021/2/300:11
 */
@Component
public class Log implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println(o.getClass().getName()+" 的"+method.getName()+"执行了！");
    }
}
